<?php
	include_once("king_head.php");

?>

<?php
	include_once("ClsSebent/config.php");

if("$action"=="Save" && $_SESSION['SITE_ID'] != "")
{
		$meta_keywords=mysql_escape_string($meta_keywords);
		$meta_description=mysql_escape_string($meta_description);
		$meta_title=mysql_escape_string($meta_title);
		$sql="UPDATE cpanel_skin SET meta_keywords='$meta_keywords',meta_description='$meta_description', meta_title='$meta_title'";
		//echo $sql;
		mysql_query($sql);	   
		echo "<H4><FONT COLOR=red>Meta-tags Update Successfully!</font></H4><BR>";
}//if(save..
	
	$sql="SELECT * FROM cpanel_skin";

	$result = mysql_query($sql);
	if($row=mysql_fetch_array($result))
	{
		$meta_keywords=stripslashes($row["meta_keywords"]);
		$meta_description=stripslashes($row["meta_description"]);
		$meta_title=stripslashes($row["meta_title"]);		
	}
?>

<CENTER>
<H2> Control Panel's Meta-tags</H2>
<form enctype="multipart/form-data"  method="post"><input type=hidden name=site_id value="<?php echo $_SESSION['SITE_ID']; ?>">
<TABLE>
<tr><td>Meta title </td><td><input name=meta_title value="<?php echo $meta_title; ?>" size=100 maxlength=100></td></tr>
<tr><td>Meta Description </td><td><textarea name=meta_description rows=5 cols=80><?php echo $meta_description; ?></textarea></td></tr>
<tr><td>Meta Keyword <BR><FONT SIZE=1>(Keyword should<BR>be saprated<BR>by ",")</FONT></td><td><textarea name=meta_keywords rows=5 cols=80><?php echo $meta_keywords; ?></textarea></td></tr>
<td colspan=2 align=center><input type=submit name=action value=Save></TD>
</TR>
</TABLE>
</form>
</CENTER>

<?php
	include_once("king_foot.php");
?>